#ifndef _CINDICATOR_LLVHHV_H
#define _CINDICATOR_LLVHHV_H
namespace GSTrader
{
	namespace Indicator
	{
		class INDICATOR_API LLVHHV : public CIndicator
		{
		public:
			LLVHHV();
			virtual ~LLVHHV();
			virtual CIndicator* CreateInstance();

			void SetParam(int nType, int nLength, int nBarType);

			virtual void SetParam(double* pdParam);
			virtual double Calculate(int nIndex);
			virtual void RefreshData();
			double SetMaxMinValue(int nIndex);
		private:
			int m_nType; // 0 : LLV 1 : HHV
			int m_nLength;
			int m_nBarType;

			double m_dMax, m_dMin;
		};
	}
}

#endif // _CINDICATOR_LLVHHV_H